﻿using System;
using Colorful.Furniture.Enum;
using Colorful.Furniture.IEntity;
using FreeSql.DataAnnotations;

namespace Colorful.Furniture.ErpOrderManagement;

/// <summary>
/// 充值订单回调信息表
/// </summary>
[Table(Name = "erp_recharge_order_callback_logs")]
public class RechargeOrderCallbackLog : AuditAggregateRoot
{
    /// <summary>
    /// 编码
    /// </summary>
    [Column(Name = "id", IsPrimary = true)]
    public Guid Id { get; set; }

    /// <summary>
    /// 订单编码
    /// </summary>
    [Column(Name = "order_id")]
    public Guid? OrderId { get; set; }

    /// <summary>
    /// 平台订单号
    /// </summary>
    [Column(Name = "order_no", StringLength = 60)]
    public string OrderNo { get; set; }

    /// <summary>
    ///  回调信息
    /// </summary>
    [Column(Name = "post_data", StringLength = 600)]
    public string PostData { get; set; }

    /// <summary>
    ///  客户回调结果
    /// </summary>
    [Column(Name = "result", StringLength = 600)]
    public string Result { get; set; }

    /// <summary>
    ///  备注
    /// </summary>
    [Column(Name = "remark", StringLength = 600)]
    public string Remark { get; set; }

    /// <summary>
    /// 回调类型（1 = 供应商提交给平台的回调信息；2 = 提交给客户的回调信息；）
    /// </summary>
    [Column(Name = "type")]
    public int? Type { get; set; }

    /// <summary>
    /// 订单接收/推送状态
    /// </summary>
    [Column(Name = "status")]
    public EnumOrderStatus? Status { get; set; }


}

